// implements the input phase, where the user responds to a given set of shapes.
// the response is saved in the 'data/<username>/qr' file.

public class PLTrain {
	PLPlayer[] mPlayers = new PLPlayer[2];

	public PLTrain() {}

	public void Train() {
		// TODO: enable this later
		GetPlayerInput();
		
		LearnPlayerStyle();
	}

	// gets the player input
	public void GetPlayerInput() {
		PLPhaseInput game = new PLPhaseInput();
		
		// in a different thread
		game.Play(GetName());
		// add an exit button in a different thread 		
	}

	// learns the players style from the input received
	public void LearnPlayerStyle() {
		PLPhaseLearn learner = new PLPhaseLearn(GetName());
		learner.Learn();
	}

	private String GetName() {
		// TODO: add the ui code here to get name
		return "Nick"; 
		//SettingsWindow.Obj().getCurrentUser(); 
	}
	
	
	/*
	public static void main(String[] args) {
		PLTrain trainer = new PLTrain();

		// in a different thread
		trainer.Train();
		// add an exit button in a different thread
		
	}
	*/
}

